package cz.proks.schoolpupilbook.gae.dbo;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import com.google.appengine.api.datastore.Key;


@Entity
public class UserCourseRelationDBO implements IsIndexableDBO{
	private Key id;
	private Key userKey;	
	private Key courseKey;
	
	public UserCourseRelationDBO() {
		// TODO Auto-generated constructor stub
	}
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	public Key getId() {
		return id;
	}
	public void setId(Key id) {
		this.id = id;
	}
	
	@Basic
	@Column(nullable = false)
	public Key getUserKey() {
		return userKey;
	}

	public void setUserKey(Key studentKey) {
		this.userKey = studentKey;
	}

	@Basic
	@Column(nullable = false)
	public Key getCourseKey() {
		return courseKey;
	}

	public void setCourseKey(Key courseKey) {
		this.courseKey = courseKey;
	}	
}